package com.shigu.trade.enums;

public enum TradeSource {
    XCX(1,"小程序"),
    APP(2,"app"),
    GZH(3,"公众号");

    public static TradeSource selByValue(int value){
        for(TradeSource pt: TradeSource.values()){
            if(pt.getValue()==value){
                return pt;
            }
        }
        return null;
    }


    TradeSource(int value, String title) {
        this.value = value;
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    private int value;
    private String title;

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    }
